//
//  ApiConfig.h
//  ChunLaiZhuangClient
//
//  Created by zzs on 16/3/16.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#ifndef ApiConfig_h
#define ApiConfig_h

#define DOMAIN_ADDRESS @"http://www.chunlaizhuang.com/rest/v2"
#define kHOST @"www.chunlaizhuang.com/rest/v2"
#define kPORT 0

#define API_path_splash  @"splash"   //启动页
#define API_path_home  @"home"   //首页
#define API_path_search  @"search"
#define API_path_register  @"register"
#define API_path_register_sms  @"register/sms"   //注册时发送手机验证码
#define API_path_login  @"login"
#define API_path_logout @"logout"
#define API_path_forgotten  @"forgotten"
#define API_path_forgotten_sms  @"forgotten/sms" //重置密码发送验证码


#define API_path_categoriesAll  @"categories/all"
#define API_path_categories  @"categories"
#define API_path_categories_products  @"categories/products"  //某个分类下面的产品列表
#define API_path_brands_all  @"brands/all"
#define API_path_brands_products  @"brands/products"  //根据品牌ID获取产品列表
#define API_path_brands_grouped  @"brands/grouped"
#define API_path_brands_alphabet  @"brands/alphabet"  //按字母分组
#define API_path_cart_products @"cart"
#define API_path_cart_select_all @"cart/check"
#define API_path_cart_unselect_all @"cart/uncheck"
#define API_path_cart_update_product_quantity @"cart"
#define API_path_cart_delete_product @"cart"
#define API_path_cart_count @"cart/count"
#define API_path_account_info @"account"
#define API_path_account_invitation @"account/invitation"  //个人中心-获取邀请码[需登录]
#define API_path_account_orders @"account/orders"  //订单列表
#define API_path_account_order_cancel @"account/order_cancel" //取消订单
#define API_path_account_order_pay @"account/order_pay" //继续支付
#define API_path_address_list @"account/addresses"
#define API_path_area_list @"locations"
#define API_path_address_add @"account/addresses"
#define API_path_address_setdefualt @"account/address_default"
#define API_path_address_delete @"account/addresses"
#define API_path_coupon_list @"account/coupons"
#define API_path_checkout_coupon_list @"checkout/coupon"
#define API_path_checkout_address @"checkout/shipping_address"
#define API_path_checkout_coupon @"checkout/coupon"
#define API_path_checkout_pay @"checkout/payment_method"
#define API_path_product_detail_prefix @"products/" //获取单个商品详情（后需直接拼接产品ID）
#define API_path_order_express @"account/order_express/" //获取物流详情
#define API_path_add_product_to_cart @"cart"
#define API_path_confirm_order @"checkout/confirm" //结算生成订单
#define API_path_checkout_init @"checkout"
#define API_path_purchase_product_now @"checkout/buy_now" //立即购买
#define API_path_product_price @"products/price" //获取商品价格
#define API_path_account_wish @"account/wishlist"
#define API_path_review_add @"review/add"   //个人中心添加商品评论
#define API_path_account_firstname @"account/firstname"   //修改昵称
#define API_path_account_gender @"account/gender"   //修改性别
#define API_path_feedback_upload_image @"feedback/upload_image"  //上传吐槽图片
#define API_path_feedback @"feedback"  //添加吐槽
#define API_path_account_avatar @"account/avatar"  //上传头像



#define API_path_version  @"version"   //获取版本
//h5 链接
#define  URL_XINGYOUSHUI @"/information/checkout" //行邮税
#define  URL_USER_PROTOCOL @"/information/privacy" //用户协议
#define  URL_SERVICE_PROTOCOL @"/information/checkout" //服务协议
#define  URL_HELP   @"/information/helps"   //帮助
#define  URL_NORMAL_QUESTION @"/information/faqs" ////常见问题
#define  URL_XMF @"http://www.chunlaizhuang.com/bee" //小蜜蜂  http://www.chunlaizhuang.com/rest/v2/information/entrust
#define  URL_entrust @"/information/entrust" //购物车页面的个人委托协议和用户协议都用这个


#define IS_5() ([[UIScreen mainScreen] bounds].size.height*[[UIScreen mainScreen] scale] == 1136)
#define IS_6Inch() ([[UIScreen mainScreen] bounds].size.height*[[UIScreen mainScreen] scale] ==1334)
#define IS_6PInch() ([[UIScreen mainScreen] bounds].size.height*[[UIScreen mainScreen] scale] ==2208)
#define SharedAppDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#endif /* ApiConfig_h */
